package emailUtils;


public class MailResult
{
    String statusCode;
    String msg;
    Object data;
    private MailResult(Builder builder){
        this.statusCode = builder.statusCode;
        this.msg = builder.msg;
        this.data = builder.data;                
    }
    public static class Builder{
        private String statusCode;
        private String msg;
        private Object data;         
        
        public MailResult build()
        {
            return new MailResult(this);
        }
      
        public Builder setStatusCode(String statusCode)
        {
            this.statusCode = statusCode;
            return this;
        }
        
        public Builder setMsg(String msg)
        {
            this.msg = msg;
            return this;
        }
       
        public Builder setData(Object data)
        {
            this.data = data;
            return this;
        }
    }
    public String getStatusCode()
    {
        return statusCode;
    }
    public void setStatusCode(String statusCode)
    {
        this.statusCode = statusCode;
    }
    public String getMsg()
    {
        return msg;
    }
    public void setMsg(String msg)
    {
        this.msg = msg;
    }
    public Object getData()
    {
        return data;
    }
    public void setData(Object data)
    {
        this.data = data;
    }
    @Override
    public String toString()
    {
        return "MailResult [statusCode=" + statusCode + ", msg=" + msg + ", data=" + data + "]";
    }
    
}
